body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f6f9fc;
  transition: background 0.3s ease, color 0.3s ease;
  padding-top: 70px; /* to ensure content doesn't go under fixed header */
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}
main {
  padding-top: 1rem;
}
a {

}
img {
  display: block;
  max-width: 100%;
}
ul {
  padding-left: 0;
}
li {
  list-style: none;
}
.course-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 280px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
}
.card img {
  height: 60px;
  margin: 1rem auto;
}
.card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.contact-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0077cc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.contact-bubble img {
  width: 30px;
  height: 30px;
}
.contact-bubble:hover {
  transform: scale(1.1);
}

.contact-menu {
  position: fixed;
  bottom: 80px;
  right: 30px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}
.contact-menu.open {
  display: flex;
}
.contact-menu a {
  background: white;
  border-radius: 50%;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.contact-menu a:hover {
  transform: scale(1.15);
}
.contact-menu a img {
  width: 32px;
  height: 32px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.filters {
  margin-top: 90px;
  text-align: center;
  padding: 1rem;
}
.filters button {
  margin: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #004080;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filters button:hover {
  background: rgba(0, 119, 204, 0.2);
  color: #0077cc;
  transform: scale(1.05);
}
body.dark-mode .filters button {
  background: rgba(255,255,255,0.1);
  color: #eee;
}
body.dark-mode .filters button:hover {
  background: rgba(102,204,255,0.15);
  color: #66ccff;
}

.filters button.active {
  background: rgba(0, 119, 204, 0.3);
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,119,204,0.4);
}
body.dark-mode .filters button.active {
  background: rgba(102,204,255,0.3);
  color: #fff;
  box-shadow: 0 0 10px rgba(102,204,255,0.5);
}

/* Animate buttons on load */
.filters button {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideUp 0.4s forwards;
}
.filters button:nth-child(1) { animation-delay: 0.1s; }
.filters button:nth-child(2) { animation-delay: 0.2s; }
.filters button:nth-child(3) { animation-delay: 0.3s; }
.filters button:nth-child(4) { animation-delay: 0.4s; }
.filters button:nth-child(5) { animation-delay: 0.5s; }
.filters button:nth-child(6) { animation-delay: 0.6s; }
.filters button:nth-child(7) { animation-delay: 0.7s; }
.filters button:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card img {
  height: 60px;
  margin: 1rem auto;
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.15) rotate(3deg);
}

.toggle-theme {
  cursor: pointer;
  font-size: 1.4rem;
  color: #004080;
  transition: transform 0.3s ease;
}
.toggle-theme:hover {
  transform: scale(1.2);
}
body.dark-mode .toggle-theme {
  color: #fff;
}

.floating-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 9999;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.floating-toggle:hover {
  transform: scale(1.1);
}
body.dark-mode .floating-toggle {
  background: rgba(0,0,0,0.4);
  color: #fff;
}


.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
  max-width: 250px;
  min-height: 200px;
  box-sizing: border-box;
}

.card img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #003366;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  padding: 0 10px;
}

body.dark-mode .card h3 {
  color: #fff;
}
